package org.LZQ.ShortLink.project.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.LZQ.ShortLink.project.domain.ShortLink;
import org.LZQ.ShortLink.project.dto.req.ShortLinkPageReqDTO;
import org.apache.ibatis.annotations.Param;

/**
* @author liangzhiquan
* @description 针对表【t_link】的数据库操作Mapper
* @createDate 2024-08-21 22:24:35
* @Entity org.LZQ.ShortLink.user.domain.TLink
*/
public interface ShortLinkMapper extends BaseMapper<ShortLink> {
    /**
     * 分页统计短链接
     */
    IPage<ShortLink> pageLink(ShortLinkPageReqDTO requestParam);

    /**
     * 短链接访问统计自增
     */
    void incrementStats(@Param("gid") String gid,
                        @Param("fullShortUrl") String fullShortUrl,
                        @Param("totalPv") Integer totalPv,
                        @Param("totalUv") Integer totalUv,
                        @Param("totalUip") Integer totalUip);
}




